﻿$(document).ready(function() {

    $("#dThinking").hide();
    $("#ContactResponse").hide();
    $("input.PhoneMask").mask("(999) 999-9999");
    $("input.ZipCodeMask").mask("99999");
    $('.error').hide();
    $("#ContactForm").validate();
    $('#FirstName').focus();
    //http://greatwebguy.com/programming/dom/default-html-button-submit-on-enter-with-jquery/
    $("form input").keypress(function(e) {
        if ((e.which && e.which == 13) || (e.keyCode && e.keyCode == 13)) {
            $('button[type=submit] .default').click();
            return true;
        }
    });


});
